package com.yf.dao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;


public class BaseDao {
    SqlSessionTemplate sessionTemplate;
    String getStatement(String name) {
        return String.format("%s.%s", this.getClass().getName(), name);
    }

    @Autowired
    public void setSessionTemplate(SqlSessionTemplate sessionTemplate) {
        this.sessionTemplate = sessionTemplate;
    }
}
